object Fibonacci {
    def main() : Unit = {
        println(new Fib().computeFib(20));
    }
}
 
class Fib {
    def computeFib(num : Int) : Int = {
        var num_aux : Int;
        if(num<2) { 
            num_aux = num;
        } else {
           num_aux = this.computeFib(num-1) + this.computeFib(num-2);
        }
        return num_aux;
    }
}

// End of Fibonacci
